import { transformRecordToOption } from '@/utils/common';

// 是否
export const dictYNRecord: Record<string, string> = {
  Y: '是',
  N: '否'
};
export const dictYNOptions = transformRecordToOption(dictYNRecord);

// 数字是否
export const dictYNNumberRecord: Record<number, string> = {
  1: '是',
  2: '否'
};
export const dictYNNumberOptions = transformRecordToOption(dictYNNumberRecord);

// 状态开启关闭
export const dictStatusRecord: Record<number, string> = {
  1: '开启',
  2: '关闭'
};
export const dictStatusOptions = transformRecordToOption(dictStatusRecord);

// 性别男女
export const dictGenderRecord: Record<number, string> = {
  1: '男',
  2: '女',
  3: '未知'
};
export const dictGenderOptions = transformRecordToOption(dictGenderRecord);

// 遗留菜单
export const menuTypeRecord: Record<number, string> = {
  '1': 'page.manage.menu.type.directory',
  '2': 'page.manage.menu.type.menu'
};

export const menuTypeOptions = transformRecordToOption(menuTypeRecord);

export const menuIconTypeRecord: Record<string, string> = {
  '1': 'page.manage.menu.iconType.iconify',
  '2': 'page.manage.menu.iconType.local'
};

export const menuIconTypeOptions = transformRecordToOption(menuIconTypeRecord);
